part of '../../store.dart';

class _StoreContentMetadataV1Dto extends Equatable implements _StoreContentMetadataDto {
  const _StoreContentMetadataV1Dto({
    required this.storeVersion,
  });

  @override
  final int storeVersion;

  @override
  int get version => 1;

  @override
  List<Object?> get props {
    return [
      storeVersion,
    ];
  }

  factory _StoreContentMetadataV1Dto.fromJson( Map<String, dynamic> json) {
    return _StoreContentMetadataV1Dto(storeVersion: json[_kStoreContentMetadataStoreVersionKey],);
  }

  @override
  Map<String, dynamic> toJson() {
    return {
      _kStoreContentMetadataVersionKey: version,
      _kStoreContentMetadataStoreVersionKey: storeVersion,
    };
  }


}